package com.itheima.extends1demo;

/**
 * @author jiangxun
 * @date 11-17-2024
 * 父类
 * 继承的好处：1 代码复用 2 减少重复代码
 */
public class People {
    private String name;
    private char sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }
}
